import java.util.Scanner;
//author: synktc

public class kassa1 {

	
	public static void main(String[] args) {
	Scanner a = new Scanner(System.in);
	String user = "adi";
	String pass = "123";
	
	System.out.println("Simple kassa program by synktc@kaskus.us");
	System.out.print("Masukin username: ");
	user = a.next();
	System.out.print("Masukin password: ");
	pass = a.next();
	
	if (user.equals("adi") && pass.equals("123") )
	{
		System.out.println("username dan password benar");
		}
	else if (pass.equals("123") && user.equals("adi"))
	{
		System.out.println("password dan username benar");
		}
	else{
		System.out.println("maaf username atau password salah"); 
		System.exit(0);
	}
	
	
	String kode[] = {"A01","B01","C01","D01"};	
	
	System.out.print("Masukin kode: ");
	String kodes;
	int quantity,total;
	kodes = a.next();
	
	if ( kodes.equals(kode[0]))
	{
		System.out.println("2500"); 
		System.out.println("Quantity: ");
		quantity = a.nextInt();
		total = quantity * 2500;
		System.out.println("Total harga yang harus dibayar: Rp."+total);
	}else if (kodes.equals(kode[1]))
		{ 
		System.out.println("25000");
		System.out.println("Quantity: ");
		quantity = a.nextInt();
		total = quantity * 25000;
		System.out.println("Total harga yang harus dibayar: Rp."+total);
	}else if (kodes.equals(kode[2]))
	{
		System.out.println("4500");
		System.out.println("Quantity: ");
		quantity = a.nextInt();
		total = quantity * 4500;
		System.out.println("Total harga yang harus dibayar: Rp."+total);
	}else if (kodes.equals(kode[3]))
	{ 
		System.out.println("1200");
		System.out.println("Quantity: ");
		quantity = a.nextInt();
		total = quantity * 1200;
		System.out.println("Total harga yang harus dibayar: Rp."+total);
	}else {
		System.out.println("Maaf kode tidak dikenal");
		}
	
	
	
	
	
	
	}

}
